![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@zcorky/fz
Advanced tools
A simply http client lib base fetch
$ npm install @zcorky/fz
// typescript
import fz from '@zcorky/fz';
(async () => {
const json = await fz.post('https://some-api.com', {json: {foo: true}}).json();
console.log(json);
//=> `{data: '🦄'}`
})();
// When 400 BadRequest
Fz.onUnauthorized(async (response, options) => {
// Do Something
});
// When 401 Unauthorized
Fz.onUnauthorized(async (response, options) => {
// Do Something
});
// When 403 Forbidden
Fz.onForbidden(async (response, options) => {
// Do Something
});
// When 404 Not Found
Fz.onNotFound(async (response, options) => {
//
});
// When 405 Method Not Allowed
Fz.onMethodNotAllowed(async (response, options) => {
//
});
// When 429 Too Many Requests
Fz.onRateLimited(async (response, options) => {
//
});
// When 500 Internal Server Error
Fz.onInternalServerError(async (response, options) => {
//
});
// Apply Global Loading
Fz.enableShowLoading();
Fz.loading(
async start() {
XXUI.showLoading();
},
async end() {
XXUI.hideLoading();
},
);
Features | fz | umi-request | fetch | axios |
---|---|---|---|---|
implementation | Browser native support | Browser native support | Browser native support | XMLHttpRequest |
size | 3.4k | 9k | 4k (polyfill) | 14k |
query simplification | ✅ | ✅ | ❎ | ✅ |
params simplification | ✅ | ❎ | ❎ | ❎ |
post simplification | ✅ | ✅ | ❎ | ❎ |
timeout | ✅ | ✅ | ❎ | ✅ |
cache | ❎ | ✅ | ❎ | ❎ |
error Check | ✅ | ✅ | ❎ | ❎ |
error Handling | ❎ | ✅ | ❎ | ✅ |
interceptor | ✅ | ✅ | ❎ | ✅ |
prefix | ✅ | ✅ | ❎ | ❎ |
suffix | ✅ | ✅ | ❎ | ❎ |
processing gbk | ❎ | ✅ | ❎ | ❎ |
middleware | ✅ | ✅ | ❎ | ❎ |
cancel request | ❎ | ✅ | ❎ | ✅ |
For more discussion, refer to Traditional Ajax is dead, Fetch eternal life If you have good suggestions and needs, please mention issue
MIT © Moeover
FAQs
A simply fetch library
The npm package @zcorky/fz receives a total of 87 weekly downloads. As such, @zcorky/fz popularity was classified as not popular.
We found that @zcorky/fz demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.